<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>递归阶乘</title>
	</head>
	<body>
		
		<script>
//			function num(a,b){
//				var res = a*b;
//				return res
//			}
//			
//			alert(num(10,20));
//			console.log(num(10,20));
//			document.querySelector("#pid").innerHTML = num(30,40);


/*
			function asd(n1,n2,n3){
				console.log(n1);
				console.log(n2);
				
				console.log(arguments);
				console.log(arguments[1]);
				
				for(var i = 0;i<arguments.length;i++){
					console.log(arguments[i]);
				}
			}
			asd(100,200,300)
			*/
			
			function jc(n){
				if(n==1){
					return 1;
				}else{
					return n * jc(n-1);
				}
			}
			console.log(jc(5));
		</script>
	</body>
</html>
